package cn.elead.it.template.config;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.gitee.elead.util.spring.ApplicationContextRegister;

import cn.elead.it.template.properties.TemplateProperties;

/**
 * 自定义配置扩展
 * 
 * @author luopeng
 *
 */
@Configuration
@EnableCaching	
@EnableConfigurationProperties(TemplateProperties.class)
public class CommonConfig {

	@Bean
	public ApplicationContextRegister applicationContextRegister() {
		return new ApplicationContextRegister();
	}
}
